package com.lotus.lqmp.service.common.enums;

import com.lotus.platform.common.model.enums.EnumService;

/**
 * LotusDocErrorCode枚举描述
 * @author yangtao
 * @since 2021/08/19 12:57
 */
public enum ErrorCodeEnum implements EnumService {
    DELIVERABLES_NAME_DUPLICATE(20000001, "DELIVERABLES_NAME_DUPLICATE", "交付物模板名称重复！"),
    DELIVERABLES_NOT_EXIST(20000002, "DELIVERABLES_NOT_EXIST", "交付物模板配置不存在！"),
    ECU_INVENTORY_DETAIL_NOT_EXIST(20000003, "ECU_INVENTORY_DETAIL_NOT_EXIST", "ecu清单没有对应详情信息！"),
    ECU_INVENTORY_NOT_EXIST(20000004, "ECU_INVENTORY_NOT_EXIST", "ecu清单信息不存在！"),
    REVIEW_PLAN_NOT_EXIST(20000005, "REVIEW_PLAN_NOT_EXIST", "评审计划不存在！"),
    EXIST_GOING_REVIEW_PLAN(20000006, "EXIST_GOING_REVIEW_PLAN", "存在进行中的评审计划！"),
    EXIST_REVIEW_PLAN_CREATED(20000007, "EXIST_REVIEW_PLAN_CREATED", "存在评审计划已创建！"),
    EXIST_ECU_REVIEW_PLAN_CREATED(20000008, "EXIST_ECU_REVIEW_PLAN_CREATED", "已存在项目对应评审计划被创建！"),
    EXIST_NOT_DELETED_REVIEW_PLAN(20000009, "EXIST_NOT_DELETED_REVIEW_PLAN", "存在非删除评审计划！"),
    ;

    private int code;
    private String value;
    private String message;

    ErrorCodeEnum(int code, String value, String message) {
        this.code = code;
        this.value = value;
        this.message = message;
    }

    @Override
    public int code() {
        return this.code;
    }

    @Override
    public String value() {
        return this.value;
    }

    @Override
    public String message() {
        return this.message;
    }

    @Override
    public String getValueByCode(String s) {
        return null;
    }
}

